
function setDataPln(category,site_id){
	Ext.Ajax.request({
	    method: "GET",
	    dataType: "json",
	    url: "./Services/Asset/AssetSACDetails?cat="+category+"&siteid="+site_id+"",
	    async: false	,
	    success: function(c) {
	    	var jsonResults= $.parseJSON(c.responseText);
	    	data = jsonResults.item[0];
	    	Ext.getCmp('assetplnform').getForm().setValues(data);
        	Ext.getCmp('siteidpln').setDisabled(true);
        	Ext.getCmp('assetcategorypln').setDisabled(true);
        	Ext.getCmp('assetcategorydescpln').setDisabled(true);
        }
       
        
    });	     

}

function InputDataPLN(){	
	Ext.getCmp('assetplnform').getForm().submit({        	        				  
	  success: function(form, action) {
		  Ext.Msg.alert('Submited', action.response.responseText);
	  },
	  failure: function(form, action) {
	      Ext.Msg.alert('Submited', action.response.responseText);
	      }
	});
}

